package de.stefanocke.roo.wicket;

/**
 * An exception that is thrown when a MetaDataProvider
 * discovers some validation error.
 * 
 * @author stefan.ocke
 * 
 */
@SuppressWarnings("serial")
public class ValidationException extends RuntimeException {

	private boolean silent;

	public ValidationException(String message, boolean silent) {
		super(message);
		this.silent = silent;
	}

	public ValidationException(String message) {
		this(message, false);
	}

	public boolean isSilent() {
		return silent;
	}

}
